Skip to content

Mark temporal point info metadata as suffix metadata - #5345

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix6
Aug 28, 2026
Merged

Mark temporal point info metadata as suffix metadata#5345
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix6

Conversation

@xinzhao-apple

@xinzhao-apple xinzhao-apple commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Temporal point info is prefix metadata (is_suffix == 0), but it was written after the tile group OBUs. The decoder treats a prefix metadata OBU that follows a coded frame as the start of the next frame unit, so --timing-info=model produced a stream that failed to decode with "Unspecified internal error" on a nonexistent trailing frame.

Fix (Encoder only): Set is_suffix = 1 to match where the OBU is written.

@SMPaluri

Copy link
Copy Markdown
Contributor

Thanks Xin, I think it could also just change is_suffix = 1 so that it is appended at the end. But what you have is fine. I meant to add an encoder cli to set is_suffix for all the metadata.

@xinzhao-apple xinzhao-apple changed the title Write temporal point info metadata before the coded frame OBU Mark temporal point info metadata as suffix metadata Aug 28, 2026
@xinzhao-apple

Copy link
Copy Markdown
Contributor Author

Thanks Xin, I think it could also just change is_suffix = 1 so that it is appended at the end. But what you have is fine. I meant to add an encoder cli to set is_suffix for all the metadata.

Thanks Seethal for the review and approval, I've updated the PR to just is_suffix = 1. Much smaller change and the decoded output is identical. Agreed that an encoder CLI (in a separate commit) to set is_suffix for all metadata is the more systematic fix.

Temporal point info is written after the coded frame OBU but was marked
as prefix metadata (is_suffix == 0). The decoder treats a prefix metadata
OBU that follows a coded frame as the start of the next frame unit, so
--timing-info=model produced a stream that failed to decode with
"Unspecified internal error" on a nonexistent trailing frame.
@urvangjoshi
urvangjoshi merged commit 885b0a8 into AOMediaCodec:main Aug 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants